﻿<UserControl x:Class="WpfFeeCalculator.View.UserControl1"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:ssg="clr-namespace:SpreadsheetGear.Windows.Forms;assembly=SpreadsheetGear"
        xmlns:wf="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
 
            
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="65"/>
                        <ColumnDefinition Width="60"/>
                        <ColumnDefinition/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="4"/>
                        <RowDefinition/>
                        <RowDefinition Height="4"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
                    <TextBlock  Grid.Column="0" Grid.Row="0" Margin="2" Text="Portfolio"/>
                    <TextBox Grid.Column="1" Grid.Row="0" Grid.ColumnSpan =" 3"/>
                    <TextBlock  Grid.Column="0" Grid.Row="1" Margin="2" Text="Date"/>
                    <DatePicker  Grid.Column="1" Grid.Row="1" Grid.ColumnSpan="3"></DatePicker>
                    <Button Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="2" Margin="1,1,1,1">Load PriceCutOff</Button>
                    <ComboBox  Grid.Column="2" Grid.Row="2" Grid.ColumnSpan="2"/>
                    
                    <WindowsFormsHost Grid.Row="4" Grid.ColumnSpan="4">
                        <ssg:WorkbookView   Name="calculationWorkbookView"></ssg:WorkbookView>
                    </WindowsFormsHost>
        <DataGrid Grid.Row="5" Grid.ColumnSpan="4">

        </DataGrid>
        <Button  Grid.Column="1" Grid.Row="6" Margin="2" >Load</Button>
        <Button  Grid.Column="2" Grid.Row="6" Margin="2">Save</Button>
        <Button  Grid.Column="3" Grid.Row="6" Margin="2">To Excel</Button>
    </Grid>
 
</UserControl>
